# -*- coding: utf-8 -*-
# Django settings for note project.
import os


WEB_PATH = '/data/athene-editor'
WEB_ROOT = '/data/athene-editor'
if os.name == 'nt':
    WEB_PATH = 'F:/python-game-editor'
    WEB_ROOT = '/python-game-editor'
UPLOAD_PATH = 'upload/'
DEBUG = True
TEMPLATE_DEBUG = DEBUG

PAGE_SIZE = 10

ADMINS = (
          
)

MANAGERS = ADMINS

#DATABASE_ENGINE = 'sqlite3'          
#DATABASE_NAME = '%s/db/editor.sqlite' % WEB_PATH          
#DATABASE_USER = ''             
#DATABASE_PASSWORD = ''         
#DATABASE_HOST = ''             
#DATABASE_PORT = ''

DATABASE_ENGINE = 'mysql'          
DATABASE_NAME = 'athene_manage_tmp'      
DATABASE_USER = 'root'          
DATABASE_PASSWORD = 'test'         
DATABASE_HOST = '10.130.136.21'             
DATABASE_PORT = '3306'               

TIME_ZONE = 'America/Chicago'

APP_DOMAIN = 'http://10.130.138.58:8000/'
APP_NAME = 'Editor'
APP_VERSION = '1.0.0'
APP_COMPANY = 'Happy Elements'
APP_LICENSE = 'GNU General Public License v2'

LANGUAGE_CODE = 'zh-cn'

DEFAULT_CHARSET = "utf-8"

SITE_ID = 1

USE_I18N = True

ugettext = lambda s: s
LANGUAGES = (
  ('zh-cn', u'简体中文'),
  ('en', u'English'),
)

SECRET_KEY = '&a*2eokltx!i@0ohfk=gp(98z^8po#poq2g8r__d2b)-^gvmn0'

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source'
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.middleware.transaction.TransactionMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
)

ROOT_URLCONF = 'mvc.urls'

TEMPLATE_DIRS = (
    '%s/templates' % WEB_PATH ,
)

INSTALLED_APPS = (
    'mvc'
)
